Developer Documentation
PATHJava Developer Documentation > Mac OS Runtime for Java > JManager > Programming With JManager


Programming With JManager

Previous | Back Up One Level | Next

Checking JManager Versions

Many JManager data structures require that you specify the version of JManager ( kJMVersion ) you are compiling against. Before beginning a session, you should compare this value to the version of JManager available on the host computer to make sure that the two are compatible. The function JMGetVersion returns the JManager version available on the host computer.

IMPORTANT

If you do not specify JManager as a weak library when compiling, your application will automatically fail to launch if the JManager library is not present. If you weak-link to the JManager library, your code should check that the JMGetVersion symbol is valid (that is, its value is not nil ) before calling it.


© 1998 Apple Computer, Inc. — (Last Updated 3 Dec 98)